<?php

return array(
    'name' => 'Galacoon site',
    'defaultController' => 'index',
    'basePath' => '/home/artem/www/coon/www/protected',
    'preload' => array('log'),
    'import' => array(
        'application.models.*',
        'application.components.*',
        'application.extensions.*',
    ),
    'sourceLanguage' => 'en',
    //'language' => 'ru',
    'theme' => 'basic',
    'components' => array(
        'urlManager' => array(
            'urlFormat' => 'path',
            'showScriptName' => false,
        ),
        'connector'=>array(
            'class' => 'ext.icecatConnect.EIcecatProduct',
        ),
        'db' => array(
            'class' => 'CDbConnection',
            'connectionString' => 'mysql:host=localhost;dbname=coon',
            'username' => 'root',
            'password' => '12345',
            'emulatePrepare' => true,
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),
        'user' => array(
            'loginUrl' => array('admin/login'),
            'class' => 'WebUser',
        ),
        'authManager' => array(
            'class' => 'PhpAuthManager',
            'defaultRoles' => array('guest'),
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'enabled' => true,
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'info, error, warning',
                    'categories' => 'application.*'
                ),
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'trace',
                    'categories' => 'system.db.*',
                    'logFile' => 'sql.log',
                ),
                array(
                    'class' => 'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                    'ipFilters' => array('127.0.0.1'),
                ),
            ),
        ),
        'themeManager' => array(
            'basePath' => 'protected/themes',
            'baseUrl' => 'skins',
        ),
        'cache'=>array(
            //'class'=>'system.caching.CFileCache',
            'class'=>'system.caching.CDummyCache',
        ),
        /*'errorHandler'=>array(
            'errorAction'=>'index/error',
        ),*/
       /* 'messages'=>array(
            'class'=>'ext.translateApi.BingMessageSource',
            'bingAPIKey'=>'Wk7CICO3Mm6m5FIJdG+5Q6Ub12/zoUmOuWOqcfTvsq8=',
        ),*.
      /*  'messages'=>array(
            'class'=>'ext.translateApi.GoogleMessageSource',
        ),*/
       /* 'messages'=>array(
            'class'=>'ext.translateApi.YandexMessageSource',
        ),*/
    ),
    'params' => array(
        'adminEmail' => 'bel-azar@ya.ru',
        'avatarsPath' => 'images/avatars/',
        'galleryPath' => 'images/gallery/',
    ),

    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'pass',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters' => array('127.0.0.1', '::1'),
        ),
        'imgManager' => array(
            'import'=>array('imgManager.*','imgManager.components.*'),
            'layout'=>'application.themes.basic.views.layouts.main',
            'upload_directory'=>'images/gallery',
            'max_file_number' => '10',//max number of files for bulk upload.
            'max_file_size' => '2mb',
        ),
        //...other modules...
    ),
);
//gv5Nu6sq2tz4